function setAllHidden()
{
	for (var i=0; i < 7; i ++) {
		try {
			$("showTabTop"+i).style.display = "none";
		} catch (e){}
		try {
			$("showTab"+i).style.display = "none";
		} catch (e){}
	}
	return false;
}
function move_top(iType, iLeft)
{
	try {
		$("showTabTop"+iType).style.left = iLeft;
	}catch (e){}
	return false;
}
function move(iType, iLeft)
{
	try {
		$("showTab"+iType).style.left = iLeft;
	}catch (e){}
	return false;
}
function showTab_top(iType)
{
	setAllHidden();
	try {
		$("showTabTop"+iType).style.display = "block";
	}catch (e){}
	return false;
}
function showTab(iType)
{
	setAllHidden();
	try {
		$("showTab"+iType).style.display = "block";
	}catch (e){}
	return false;
}

function $x(parentobj, tag)
{
	var tags = $t(parentobj, tag);
	try {
		return tags[0].firstChild.nodeValue;
	}catch (e){
		return null;
	}	
}
function chgImg(nowImg, imgId){
	nowImg.src = "http://www.sinaimg.cn/pfp/ishare/gxfl"+imgId+"_2.gif";
}
function revImg(nowImg, imgId){
	nowImg.src = "http://www.sinaimg.cn/pfp/ishare/gxfl"+imgId+"_1.gif";
}

function LI_AJAX_GetWrite(iClassId, sId)
{
	if (!exist("showTabList" + sId)) return false;
	this.obj = $("showTabList" + sId);
	this.classid = iClassId;
	this.xml_sender = null;
	this.getmsg = function ()
	{
		this.xml_sender = new LI_Ajax(true);
		this.xml_sender.post('/cgi-bin/classlist.cgi', 'fmt=xml&num=10&classid=' + this.classid);
		this.xml_sender.onreadystatechange(this.setShow);
	}

	var me = this;
	this.setShow = function()
	{
		if (me.xml_sender.handler.readyState == 4 && me.xml_sender.handler.status == 200 && me.xml_sender.handler.responseText)
		{
			if (strLen(me.xml_sender.handler.responseText) > 10) 
			{
				var tds = $t($("tableName"+sId), 'a');
				for (var i = 0; i < tds.length; i++)
				{
					if (tds[i].className == "nolink") tds[i].className = "islink";
				}
				$("link" + me.classid).className = 'nolink';
				me.obj.innerHTML = me.xml_sender.handler.responseText;				
			}
		}
	}
	this.getmsg();
}